// import { get } from 'core-js/fn/dict'
import axios from './axios'


// 获取部门数组
export function getRoleList(params){
  return axios({
    url:'/role/getRoleList',
    params
  })
}
//职员建档获取部门
export function getDepartment(params){
  return axios({
    url:'/personnel/getDepartmentList',
    params
  })
}

// 新增角色信息
export function insetRole(params){
  return axios({
    method: 'post',
    url:'/role/insetRole',
    params
  })
}

// 修改角色信息
export function updateRole(params){
  return axios({
    method: 'put',
    url:'/role/updateRole',
    params
  })
}

// 逻辑删除角色信息
export function deleteRole(params){
  return axios({
    method: 'delete',
    url:'/role/deleteRole',
    params
  })
}